package com.java2007.zhangyu.restaurant.dao;

import com.java2007.zhangyu.restaurant.pojo.OrderDetail;

import java.sql.SQLException;
import java.util.List;

/**
 * @author zy
 * @Version
 * @date 2021/01/29
 */
public interface OrderDetailDao {
    /**
     * 保存订单详情
     * @param orderDetail
     * @return
     * @throws SQLException
     */
    int save(OrderDetail orderDetail) throws SQLException;

    /**
     * 根据订单id查询
     * 的订单详情
     * @param id
     * @return
     * @throws SQLException
     */
    List<OrderDetail> queryByOrderId(Long id) throws SQLException;
}
